package com.dhcc.bpm.modules.bbs.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dhcc.bpm.modules.bbs.entity.Topic;
import com.dhcc.bpm.modules.bbs.mapper.TopicMapper;
import com.dhcc.bpm.modules.bbs.service.ITopicService;
import com.dhcc.bpm.modules.bbs.vo.TopicVO;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.stereotype.Service;

/**
 * @ClassName TopicServiceImpl
 * @Description 论坛板块 服务实现类
 *  @Author daina
 * @Date 2020/3/6 15:55
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 **/
@Service
public class TopicServiceImpl extends BaseServiceImpl<TopicMapper, Topic> implements ITopicService {

	/**
	 * @Description 查询板块管理员
	 * @Author daina
	 * @Date 16:08 2020/3/6
	 * @param page
	 * @param topic
	 * @return com.baomidou.mybatisplus.core.metadata.IPage<com.dhcc.bpm.modules.bbs.vo.TopicVO>
	 **/
	@Override
	public IPage<TopicVO> selectTopicPage(IPage<TopicVO> page, TopicVO topic) {
		return page.setRecords(baseMapper.selectTopicPage(page, topic));
	}

}
